function sendPostData() {
    var settings = {
        "url": "https://ceshi.tongecn.com/member/test.jsp",
        "method": "POST",
        "timeout": 0,
        "headers": {
            "Content-Type": "application/json",
            "Test-Type":"fjdkfj",
            "Test-Type2":"fdfdfjkfjjfjjf"
        },
        "data": JSON.stringify({
            "bookname": "《cordova编程》",
            "author": "马弓手"
        }),
    };

    //发送一次请求
    for(var i=0; i<1; i++) {
        $.ajax(settings).done(function (response) {
            document.getElementById("postResponse").innerHTML = JSON.stringify(response);
        });
    }
}